<%@page import="myJDBC.lowLevel.Attributes"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*"%>
<%@page import="myJDBC.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
<%@include file="smallJsps/styles.jsp" %>
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Attributes</title>
<%@include file="smallJsps/bootstrapInclude.jsp" %>
</head>
<body>
<%@include file="smallJsps/logoutButton.jsp" %>
<%@include file="smallJsps/checkAdmin.jsp" %>
<div class="row-fluid">
		<div class="span6 offset2">
	<table class="table-striped table-condensed" border="3">
		<tr>
			<th>attribute_id</th>
			<th>name</th>
			<th>type</th>
		</tr>
		<%
			ArrayList<String> listWithAttributes = Attributes.returnAttributes();
			for (int i = 0; i < listWithAttributes.size(); i = i + 3) {
				out.println("<tr><td>" + listWithAttributes.get(i)
						+ "</td><td>" + listWithAttributes.get(i + 1)
						+ "</td><td>" + listWithAttributes.get(i + 2)
						+ "</td></tr>");

			}
		%>
	</table>	
	<form method="get" action="privateOffice"><button class="btn" type="submit">privateOffice</button></form>
	</div>
	</div>	
</body>
</html>